package com.runa.rccprotocol.flightControl;

import com.rn.smart.command.dto.valve.contro.FeiKongValve;
import com.runa.monitor.comm.entity.CommValve;
import lombok.Data;

/**
 * 2024/9/6 13:49
 * zhangYB
 */
@Data
public class ValveControlParameter {


    private String buildingNumber;
    private String unitNumber;
    private String houseNumber;
    private String householdNumber;
    private String residentialQuartersName;
    private String valveAddress;


    public static ValveControlParameter getInstance(FeiKongValve feikongValve, CommValve commValve) {
        ValveControlParameter valveControlParameter = new ValveControlParameter();
        valveControlParameter.setResidentialQuartersName(feikongValve.getResidentialQuartersName());
        valveControlParameter.setBuildingNumber(feikongValve.getBuildingNumber());
        valveControlParameter.setUnitNumber(feikongValve.getUnitNumber());
        valveControlParameter.setHouseholdNumber(feikongValve.getHouseholdNumber());
        valveControlParameter.setHouseNumber(feikongValve.getHouseNumber());
        valveControlParameter.setValveAddress(commValve.getSerial());
        return valveControlParameter;

    }

}
